﻿using System;
using Component.UI.Entity;
using UnityEngine;

namespace Component.UI
{
    public class StageViewBuildHelper
    {

        private static StageViewBuildHelper instance;

        public static StageViewBuildHelper Instance => instance;

        private Transform parent;
        private readonly StageView prefabs = Resources.Load<StageView>("Prefabs/Stage");

        static StageViewBuildHelper()
        {
            instance = new StageViewBuildHelper();
        }
        
        public void CreateStageView(StageEntity stage)
        {
            prefabs.InitView(stage);
        }
        
        
    }
}